package com.o2opuzi.lib.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.util.StringUtils;


public class Valid{
	
	private boolean hasError = false;
		
	
	private String msg = null;
	
	public Valid verify(boolean hasError,String msg){
		if(!this.hasError){
			this.hasError = hasError;
			this.msg = msg;
		}
		return this;
	}
	
	public Valid isEmpty(Object value,String msg){
		return verify(StringUtils.isEmpty(value), msg);
	}
	
	public boolean hasError(){
		return this.hasError;
	}
	
	public String getMsg(){
		return this.msg;
	}
	
	public static void main(String[] args) {
		
	}

	
	
}
